/*
 *--------------------------------------------------------------------------
 *   Battlefield - A Realtime Network Multiplayer Game
 *   =======================================================
 *   Developed by Group D02 - 2009/2010 Semester 4 - CS2103
 *     Harry Nguyen Duy Hoang <nnduyhoang@yahoo.co.uk>
 *     Kent Chng Siang Rong <fivefootway@gmail.com>
 *     Lim Yong Peng <limpeng1986@gmail.com>
 *     Loh Xiankun <u0807185@nus.edu.sg>
 *   Instructed by
 *     Dr. Damith C.Rajapakse <damith@gmail.com>
 *   =======================================================
 *   $Id: GameTabPane.java 576 2010-07-26 10:10:13Z YongPeng $
 *   $LastChangedDate: 2010-07-26 10:10:13 +0000 (Mon, 26 Jul 2010) $
 *   $LastChangedBy: YongPeng $
 *--------------------------------------------------------------------------
 */
package battlefield.ui.component;

import java.awt.AlphaComposite;
import java.awt.Graphics2D;
import javax.swing.JTabbedPane;

/**
 *
 * @author Yong Peng
 */
public class GameTabPane extends JTabbedPane {

    public GameTabPane() {
        super();
        this.setOpaque(false);
    }

    public GameTabPane(int LEFT, int WRAP_TAB_LAYOUT) {
        super(LEFT, WRAP_TAB_LAYOUT);
    }

    @Override
    public void paintComponent(java.awt.Graphics g) {
        Graphics2D g2d = (Graphics2D) g.create();
        g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.2f));
        super.paintComponent(g2d);
        g2d.dispose();
    }
}
